package org.caiwl.demo.my;

import org.caiwl.demo.spring.*;

public class Application {

    public static void main(String[] args) {

        // 传统开发模式中，所有的对象创建，必须由开发人员明码new
        MessageDAO messageDAO = new MessageDAOImpl();
        MessageService messageService = new MessageServiceImpl(messageDAO);
        MessageController controller = new MessageController(messageService);

        controller.printMessage();

    }

}
